using FluentNHibernate.Cfg;
using FluentNHibernate.Framework;

namespace Roommate.Infrastructure.Persistence
{
    public class DatabaseAdministration
    {
        public void ResetDatabase()
        {

            var cfg = new SQLiteConfiguration()
          .UsingFile("c:\\temp\\roommate.db")
                     .Raw("proxyfactory.factory_class",
                    "NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle");


            new SessionSource(cfg.ToProperties(), new RoommatePersistenceModel()).BuildSchema();

        }
    }
}